package com.example.othree.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.othree.entity.Drone;
import com.example.othree.mapper.DroneManagementMapper;
import com.example.othree.service.DroneManagementService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service
public class DroneManagementServiceImpl extends ServiceImpl<DroneManagementMapper, Drone> implements DroneManagementService {
    @Resource
    DroneManagementMapper droneManagementMapper;
    @Override
    public IPage PageList(IPage<Drone> page, Wrapper wrapper) { return droneManagementMapper.PageList(page,wrapper);}

    @Override
    public ArrayList<Drone> getDataById(Integer id) {
        ArrayList<Drone> d =  droneManagementMapper.getDataById(id);
        System.out.println();
        return d;
    }

}
